<div class="blazorise-codeblock">
<div class="html"><pre>
<span class="htmlTagDelimiter">&lt;</span><span class="htmlElementName">Switch</span> <span class="htmlAttributeName">TValue</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="htmlAttributeValue">bool</span><span class="quot">&quot;</span> <span class="htmlAttributeName">Checked</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="sharpVariable"><span class="atSign">&#64;</span>rememberMe</span><span class="quot">&quot;</span> <span class="htmlAttributeName">CheckedChanged</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="sharpVariable"><span class="atSign">&#64;</span>OnRememberMeChanged</span><span class="quot">&quot;</span><span class="htmlTagDelimiter">&gt;</span>Remember Me<span class="htmlTagDelimiter">&lt;/</span><span class="htmlElementName">Switch</span><span class="htmlTagDelimiter">&gt;</span>
</pre></div>
<div class="csharp"><pre>
<span class="atSign">&#64;</span>code{
    <span class="keyword">bool</span> rememberMe;

    Task OnRememberMeChanged( <span class="keyword">bool</span> value )
    {
        rememberMe = value;

        <span class="keyword">return</span> Task.CompletedTask;
    }
}
</pre></div>
</div>
